import base64
total = 0
i = 1
while i <= 100:
    total += i
    i += 1

print("1 到 100 的和为:", total)

# 原始字符串数据
original_data = "Hello, 阿里云灵码!"

# 编码：将字符串编码为 Base64
encoded_data = base64.b64encode(original_data.encode('utf-8')).decode('utf-8')
print("编码后的结果:", encoded_data)

# 解码：将 Base64 字符串解码回原始字符串
decoded_data = base64.b64decode(encoded_data).decode('utf-8')
print("解码后的结果:", decoded_data)